﻿.layui-form-label {
    line-height: normal;
    font-weight: 700;
    float: none;
    display: inline-block;
    text-align: left;
    padding: 0 0 10px 0;
    vertical-align: middle;
    font-size: 14px;
    color: #606266;
    box-sizing: border-box;
}

.layui-form-item input {
    background-color: #fff;
    background-image: none;
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    box-sizing: border-box;
    color: #606266;
    display: inline-block;
    font-size: inherit;
    height: 40px;
    line-height: 40px;
    outline: none;
    padding: 0 15px;
    transition: border-color .2s cubic-bezier(.645,.045,.355,1);
    width: 100%;
}

    .layui-form-item input:hover {
        border-color: #c0c4cc !important;
    }

    .layui-form-item input:focus {
        border-color: #b15a73 !important;
    }

.layui-form-item textarea {
    display: block;
    resize: vertical;
    padding: 5px 15px;
    line-height: 1.5;
    box-sizing: border-box;
    width: 100%;
    font-size: inherit;
    color: #606266;
    background-color: #fff;
    background-image: none;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    transition: border-color .2s cubic-bezier(.645,.045,.355,1);
    resize:none;
}

    .layui-form-item textarea:hover {
        border-color: #c0c4cc !important;
    }

    .layui-form-item textarea:focus {
        border-color: #b15a73 !important;
    }

.image-selector {
    display: block;
    color: #606266;
    width: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    border: 1px dashed #dcdfe6;
    background-color: #f5f7fa;
    line-height: 1.4;
    font-size: 14px;
}

    .image-selector .select-tip {
        position: absolute;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
    }

.vertical-layout {
    display: flex;
    flex-direction: column;
}

.image-selector .icon {
    font-size: 40px;
}

.image-selector:hover {
    background-color: #e4e7ed;
}

.preview-item {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

    .preview-item.cover:after {
        position: absolute;
        left: 0;
        bottom: 0;
        content: "\5C01\9762";
        width: 100%;
        line-height: 24px;
        color: #fff;
        font-size: 14px;
        text-align: center;
        background-color: rgba(177,90,115,.8);
    }

.layui-progress {
    width: 100%;
}

.preview-item:not(.upload-item):hover .remove {
    display: block;
}

.preview-item .remove {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background-color: #b15a73;
    display: none;
    cursor: pointer;
    text-align: center;
    line-height: 30px;
    color: #fff;
}

.preview-item img {
    max-width: 100%;
    max-height: 100%;
}

.preview-upload-item {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
